from get_information import *
from send_email import *
from time import sleep

old = get()
while 1:
    with open('MailList.txt','r') as f:
        content = f.read()
        maillist = content.split('\n')
    new = check_new(old)
    if not new[1]:
        for title in new[1]:
            mail(title,new[1][title],maillist)
        old = new[0]
    sleep(600)
        